#ifndef _SESSION_H_
#define _SESSION_H_

#include <vector>
#include <wx/string.h>
#include <wx/db.h>
#include <wx/dbtable.h>

using namespace std;

class Session
{
public:

	int ID;
	int normID;
	int dimensionID;
	int rulebaseID;
	wxString name;
	int numberClusters;
	float mStart;
	float mEnd;

	static wxString tableName();
	static wxDbTable * defineColumns(
		wxDb * db,
		int & id, int & normID, int & dimensionID,
		int & rulebaseID, int & numberClusters, 
		double & mStart, double & mEnd, wxChar * name);
	static int createRecord(const Session & record);
	static bool updateRecord(const Session & record);
	static bool deleteRecord(const Session & record);
	static vector<Session> getFullList();
};

#endif